interface FetchClassDetailAPIResData {
  code: number
  msg: string
  time: string
  data: ClassDetail
}

/**
 * @description 根据传入的班级 id，获取该班级的详情信息
 */
export function fetchClassDetailAPI(classId: string, token: string) {
  return httpInstance.get<FetchClassDetailAPIResData>(
    '/api/classes/detail',
    { params: { id: classId }, headers: { token } },
  )
}
